package com.hh.message.task;

import java.util.TimerTask;

import org.apache.log4j.Logger;

import com.hh.baseframework.service.impl.BeanFactoryHelper;
import com.hh.baseframework.util.date.DateFormat;
import com.hh.message.service.SysMessageService;

public class SysMessageTask  extends TimerTask{
	private SysMessageService sysMessageService = BeanFactoryHelper
			.getBeanFactory().getBean(SysMessageService.class);
	private static final Logger logger = Logger
			.getLogger(SysMessageTask.class);

	@Override
	public void run() {
		logger.info(DateFormat.getDate()+"：清空消息提醒数据！！");
		sysMessageService.deleteReadData();
	}

}
